/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.juhe.usedcar;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 聚合二手车接口地区省份数据Entity
 * @author 丁光彪
 * @version 2017-01-06
 */
public class JuheUsedcarProvince extends DataEntity<JuheUsedcarProvince> {
	
	private static final long serialVersionUID = 1L;
	protected String name;		// 名称
	protected String pin;		// pin
	protected String pinyin;		// 区域类型
	protected String hits;		// hits
	
	public JuheUsedcarProvince() {
		super();
	}

	public JuheUsedcarProvince(String id){
		super(id);
	}

	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="pin长度必须介于 0 和 32 之间")
	public String getPin() {
		return pin;
	}

	public void setPin(String pin) {
		this.pin = pin;
	}
	
	@Length(min=0, max=32, message="区域类型长度必须介于 0 和 32 之间")
	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}
	
	@Length(min=0, max=32, message="hits长度必须介于 0 和 32 之间")
	public String getHits() {
		return hits;
	}

	public void setHits(String hits) {
		this.hits = hits;
	}
	
}